@media (min-width:530px) {
	body {
		text-align: center;
		user-select: none;
	}
	.histroy-button{
		display:none;
	}
	.container{
		max-width: 600px;
		width: 90%;
		margin: 0 auto;
	}
	.cal-table {
		border: 1px solid #aaa;
		width: 240px;
	}
	.cal-histroy{
		text-align: right;
		position: relative;
		width: 260px;
		height: 335px;
		display: block;
		top: -395px;
		left: 240px;
		border: 1px solid #aaa;
		overflow-y: scroll;
		background:#eee;
		padding-top: 28px;
	}
	.cal-histroy::-webkit-scrollbar {
		background:#fff;
		width:0px;
	}
	.cal-histroy::scrollbar-button {
		background:#aaa;
		width:0px;
	}
	.cal-table tr td {
		width: 25%;
	}
	.num-button {
		height: 40px;
		border: 1px solid #aaa;
		margin-top: 5px;
		line-height: 40px; 
		border-radius: 5px;
		cursor: pointer;
		font-size: 20px;
	}
	.num-button:hover {
		background: #eee;
	}
	.cal-display td{
		cursor: pointer;
		text-align: right;
		width: 99%;
		height: 50px;
		border: 1px dotted #ccc;
		border-radius: 2px;
		padding-right: 5px; 
	} 
	.cal-title {
		padding: 5px 2px;
		margin: 5px 2px;
		float: right;
		cursor: pointer;
	}
	.cal-exp{
		font-size: 14px;
		color: #aaa;
	}
	.cal-result{
		font-size: 22px;
		color: #000;
	}
	.historyResult { 
		cursor: pointer;
		background: #fff;
		padding-right: 10px;
		padding-top: 5px;
		border-bottom: 1px dotted #aaa;
		border-top: 1px dotted #aaa;
	}  
	.historyResult:hover { 
		background: #fff;
		border-bottom: 1px dotted #aaa;
		border-top: 1px dotted #aaa;
	}
	.historyPanel{
		padding: 5px;
		text-align: left;
		position: relative;
		top: -365px;
		z-index: 1;
		background: #fff; 
		width: 250px;
		left: 240px;
		border-bottom: 1px solid #aaa;
	}
}
@media (max-width:529px) {
	.resdisplay {
		text-align: right;
	}
	/* #calResult{
		margin: 0;
		padding: 0;
		text-align: right;
		width: 100%;
		/* height: 60%; 
		height: 100%;
		border: none;
		font-size: 22px;
	}
	#calstr{
		margin: 0;
		padding: 0;
		text-align: right;
		width: 100%;
		height: 30%;
		border: none;
	} */
	.historyPanel{
		display: none;
	}
	body {
		text-align: center;
		user-select: none;
	}
	.container{
		min-width: 240px;
		width: 80%;
		margin: 0 auto;
	}
	.cal-table {
		border: 1px solid #aaa;
		width: 100%;
		margin: 0 auto;
	}
	.cal-histroy{
		text-align: right;
		position: absolute; 
		height: 290px;
		top: 122px;
		min-width: 240px;
		width: 75%; 
		margin: 0 auto;
		border: 1px solid #ddd;
		overflow-y: scroll; 
		background:#eee;
		animation-name: historyAni;
		animation-duration: .5s;
	}
	@keyframes historyAni {
		from {
			height: 0px;
		}
		to {
			height: 290px;
		}
	}
	
	@-webkit-keyframes historyAni {
		from {
			height: 0px;
		}
		to {
			height: 290px;
		}
	}
	.cal-histroy::-webkit-scrollbar {
		background:#fff;
		width:0px;
	}
	.cal-histroy::scrollbar-button {
		background:#aaa;
		width:0px;
	}
	.cal-table tr td {
		width: 25%;
	}
	.num-button {
		height: 40px;
		border: 1px solid #aaa;
		margin-top: 5px;
		line-height: 40px; 
		border-radius: 5px;
		cursor: pointer;
		font-size: 20px;
	}
	.num-button:hover {
		background: #eee;
	}
	.cal-display td{
		cursor: pointer;
		text-align: right;
		width: 99%;
		height: 50px;
		border: 1px dotted #ccc;
		border-radius: 2px;
		padding-right: 5px; 
	} 
	.cal-title {
		padding: 5px 2px;
		margin: 5px 2px;
		float: right;
		cursor: pointer;
	}
	.cal-title:hover{
		text-decoration: underline;
		color: blue;
	}
	.cal-exp{
		font-size: 14px;
		color: #aaa;
	}
	.cal-result{
		position: relative;
		font-size: 22px;
		padding-right: 5px;
		left: 0px;
		color: #000;
	}
	.historyResult { 
		cursor: pointer;
		padding-right: 10px;
		padding-top: 5px;
		border-bottom: 1px dotted #ccc;
		background: #fff;
	} 
	.historyResult:nth-child(2) {
		border-top: 1px dotted #ccc;
	}
	.historyResult:hover { 
		background: #fff;
	}
}